import request from '../../utils/request'
const gatewayPath = 'templateManage'

// 查询树形结构
export function treeSelectBusiType(data) {
  return request({
    url: `${gatewayPath}/TplBusiType/treeSelect`,
    method: 'POST',
    data: data
  })
}
// 查询单条
export function getBusiType(id) {
  return request({
    url: `${gatewayPath}/TplBusiType/` + id,
    method: 'GET',
    data: {}
  })
}

// 新增
export function addBusiType(data) {
  return request({
    url: `${gatewayPath}/TplBusiType`,
    method: 'POST',
    data: data
  })
}
// 修改
export function editBusiType(data, id) {
  return request({
    url: `${gatewayPath}/TplBusiType/` + id,
    method: 'PUT',
    data: data
  })
}
// 删除（逻辑）
export function deleteBusiType(data) {
  return request({
    url: `${gatewayPath}/TplBusiType`,
    method: 'DELETE',
    data: data
  })
}
// 删除（物理）
export function deleteForceBusiType(data) {
  return request({
    url: `${gatewayPath}/TplBusiType/force`,
    method: 'DELETE',
    data: data
  })
}

